{% extends "base.html" %}
{% block title %}Leer Roles{% endblock %}
{% block head %}Leer Roles{% endblock %}
{% block content %}
{% if show_rol_list %}
{% include "rol_list.html" %}
<form action="" method="get">
{{ searchform.buscar }}
<input type="submit" value="Buscar">
</form>
<br>
<input type="button" name="load" value="Volver al Men&uacute;" onClick='location.href="/"'>
{% else %}
<style type="text/css">
label { vertical-align: top; }
</style>

<p><label for="rol_name"><b>Nombre: </b></label>
{{ rol_edit_form.nombre.data }}</p>
<p><label for="rol_desc"><b>Descripci&oacute;n: </b></label>
{{ rol_edit_form.descripcion.data }}</p>
<p><label for="rol_perms"><b>Permisos: </b></label><br>

{% for perm in rol_edit_form.permisos.data %}
    {{perm}}<br>
{% endfor %}

</p>
<form action="" method="post">
<br>
	<input  type="hidden" value={{ rol_edit_form.nombre.data}} name="rolname" />
    <input type="button" name="load" value="Volver a lista" onClick='location.href="/rol_read/"'>
</form>
{% endif %}
{% endblock %}
